/**
 * Created by LiLiuzhu on 2017/9/9.
 */
//专门配置路由规则
//引入模块
import  Home from './components/Home.vue'
import  News from './components/News.vue'
import  Login from './components/Login.vue'
import  Reg from './components/Reg.vue'
import  Detail from './components/Detail.vue'
export default{
    '/home':{
        component:Home,
        subRoutes:{
            "login":{
                component:Login
            },
            "reg":{
            component:Reg
        }
        }
    },
    '/news':{
        component:News,
        subRoutes:{
            "detail/:id":{
                component:Detail
            }
        }
    }
}